package com.liujg.future.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("category")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Category {

    @Id
    private String id;

    /**
     * 分类名
     */
    private String name;

    /**
     * 图标地址
     */
    private String icon;

    private Integer layer;

    private Category parent;
}
